package com.htw.rv.fast_scroller.scroller_bind_view

import com.htw.rv.fast_scroller.follow_scroller_bar.FastScrollerBuilder

/**
 * @author htw
 * createTime: 2022-04-25
 * desc: 进一步封装监听
 */
class FastScrollerBuilderProxy {

    private var fastScrollerBindView: FastScrollerBindView? = null

    private var fastScrollerBindViewWH: FastScrollerBindViewWH? = null
    private var fastScrollerAlphaListener: FastScrollerAlphaListener? = null
    private var fastScrollerProgressStateListener: FastScrollerProgressStateListener? = null

    private var fastScrollerBuilder: FastScrollerBuilder? = null

    fun getFastScrollerBuilder() = fastScrollerBuilder

    fun setFastScrollerBuilder(builder: FastScrollerBuilder?): FastScrollerBuilderProxy {
        this.fastScrollerBuilder = builder
        return this
    }

    fun getFastScrollerProgressStateListener() = fastScrollerProgressStateListener

    fun setFastScrollerProgressStateListener(listener: FastScrollerProgressStateListener?): FastScrollerBuilderProxy {
        this.fastScrollerProgressStateListener = listener
        return this
    }

    fun getFastScrollerAlphaListener() = fastScrollerAlphaListener

    fun setFastScrollerAlphaListener(listener: FastScrollerAlphaListener?): FastScrollerBuilderProxy {
        this.fastScrollerAlphaListener = listener
        return this
    }

    fun getFastScrollerBindViewWH() = fastScrollerBindViewWH

    fun setFastScrollerBindViewWH(listener: FastScrollerBindViewWH?): FastScrollerBuilderProxy {
        this.fastScrollerBindViewWH = listener
        return this
    }

    fun getFastScrollerBindView() = fastScrollerBindView

    fun setFastScrollerBindView(view: FastScrollerBindView?): FastScrollerBuilderProxy {
        this.fastScrollerBindView = view
        return this
    }

}